<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8" import="java.util.*,com.controller.Triangle"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>
		<%request.setCharacterEncoding("utf-8"); %>
		<jsp:useBean id="t" class="com.controller.Triangle"></jsp:useBean>
		<jsp:setProperty property="a" name="t" param="aWidth"/>
		<jsp:setProperty property="b" name="t" param="bWidth"/>
		<jsp:setProperty property="c" name="t" param="cWidth"/>
		
		计算结果为:<%=t.getArea() %><br>
</body>
</html>